|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwiiremotej.IRLight
public class IRLight
A light dot seen by the IR Sensor. IRLights are immutable.
| Constructor Summary | |
|---|---|
IRLight(int x,
int y)
Creates a new IRLight (basic mode) with the given position. |
|
IRLight(int x,
int y,
int size)
Creates a new IRLight (extended mode) with the given position and size. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Returns true if this IRLight is equivalent to the given IRLight; otherwise false. |
double |
getSize()
Returns the size of the light dot from 0 to 1 (percent). |
double |
getX()
Returns the X coordinate of the light dot from 0 to 1 (percent). |
double |
getY()
Returns the Y coordinate of the light dot from 0 to 1 (percent). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IRLight(int x,
int y)
x - X position of the light (0-1023).y - Y position of the light (0-767).
public IRLight(int x,
int y,
int size)
x - X position of the light (0-1023).y - Y position of the light (0-767).size - size of the light.| Method Detail |
|---|
public double getX()
public double getY()
public double getSize()
public boolean equals(java.lang.Object other)
true if this IRLight is equivalent to the given IRLight; otherwise false. Both coordinates and size must match.
equals in class java.lang.Objectother - the other IRLight to compare to.
true if this IRLight is equivalent to the given IRLight; otherwise false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||